import 'package:flutter_douban/model/Avatar.dart';
import 'package:json_annotation/json_annotation.dart';


part 'Cast.g.dart';

@JsonSerializable(nullable: false)
class Cast {
  Avatar avatars;
  String name;
  @JsonKey(name: "name_en")
  String nameEn;
  String alt;
  String id;

  Cast(
    this.avatars,
    this.name,
    this.nameEn,
    this.alt,
    this.id,
  );

  factory Cast.fromJson(Map<String, dynamic> json) => _$CastFromJson(json);
  Map<String, dynamic> toJson() => _$CastToJson(this);
}
